import request from '@/utils/request'

// 查询债券项目流程列表
export function listDealWfBondBase(query) {
  return request({
    url: '/base/dealWfBondBase/list',
    method: 'get',
    params: query
  })
}

// 查询债券项目流程详细
export function getDealWfBondBase(id) {
  return request({
    url: '/base/dealWfBondBase/' + id,
    method: 'get'
  })
}

// 查询债券投资详细
export function getDealBaseBondByDealId(dealId) {
  return request({
    url: '/base/dealWfBondBase/getDealBaseBondByDealId/' + dealId,
    method: 'get'
  })
}

// 保存债券项目流程
export function saveDealWfBondBase(data) {
  return request({
    url: '/base/dealWfBondBase/save',
    method: 'post',
    data: data
  })
}

// 删除债券项目流程
export function delDealWfBondBase(id) {
  return request({
    url: '/base/dealWfBondBase/' + id,
    method: 'delete'
  })
}

// 导出债券项目流程
export function exportDealWfBondBase(query) {
  return request({
    url: '/base/dealWfBondBase/export',
    method: 'get',
    params: query
  })
}
